package top.ranzhang.bean.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
public class UpadteCourseDTO {
    private Integer id;

    private String courseName;

    /**
     * 上课开始时间
     */
    @NotNull(message = "上课开始时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    /**
     * 上课时长
     */
    @NotNull(message = "上课时长不能为空")
    private Integer lessonLen;

    @NotEmpty(message = "至少选择一位用户")
    private List<Integer> childId;
    @NotEmpty(message = "至少选择一位教练")
    private List<Integer> coashId;
}
